var express = require('express');
var router = express.Router();
var db = require('../db/db')

/* GET home page. */
router.get('/', function (req, res, next) {
  db.selectAll("ErrorLog", function (err, data) {
    res.send({ data: data.recordsets[0][0].content });
    // res.render('index', { title: data.recordsets});
  })
});

module.exports = router;
